package designpattern.facade;

/*
    外观类
 */
public class FacadeHome {
    //聚合所有子系统
    private DVD dvd = DVD.getInstance();
    private Project project = Project.getInstance();

    public void start(){
        dvd.open();
        project.open();
    }

    public void play(){
        dvd.play();
        project.play();
    }

    public void close(){
        dvd.close();
        project.close();
    }


}
